/**
 * Copyright 2009 by Christian Scheid. This file is part of the switch eclipse plugin and is licensed under the GPL
 * version 3. Please refer to the URL http://www.gnu.org/licenses/gpl-3.0.html for details.
 */
package org.digitalsoul.switchplugin.editoractions;

final class MatchingPosition {
    private final int lineNumber;
    private final int charNumber;

    public MatchingPosition(int lineNumber, int charNumber) {
        this.lineNumber = lineNumber;
        this.charNumber = charNumber;
    }

    public int getCharNumber() {
        return charNumber;
    }

    public int getLineNumber() {
        return lineNumber;
    }

    public boolean isMatching() {
        return lineNumber > 0 && charNumber > -1;
    }
}